﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Oxite.ViewModels;
using ECube.SEC.Models;
using ECube.SEC.Services;
namespace ECube.SEC.Controllers
{
    public class SecurityController : Controller
    {
        private readonly IAuthorizeService authorizeService;
        public SecurityController(IAuthorizeService authorizeService)
        {
            this.authorizeService = authorizeService;
        }

        public  ActionResult Permission()
        {
            List<Permission> ovm = this.authorizeService.Permissions();
            return this.View(ovm);
        }
        [HttpPost]
        public ActionResult AddPermission()
        {
            return this.PartialView("Item");
        }
    }
}
